package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 orders
 * 
 * @author ruoyi
 * @date 2022-03-27
 */
@Data
public class Orders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Integer orderStatus;

    /** 下单用户 */
    @Excel(name = "下单用户")
    private Long userId;

    /** 地址id */
    @Excel(name = "地址id")
    private Long addressId;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 结账时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结账时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkoutTime;

    /** 支付方式 1微信,2支付宝 */
    @Excel(name = "支付方式 1微信,2支付宝")
    private Integer payMethod;

    /** 实收金额 */
    @Excel(name = "实收金额")
    private BigDecimal totalAmount;

    /** 备注 */
    @Excel(name = "备注")
    private String orderRemark;

    /** 用户手机号 */
    @Excel(name = "用户手机号")
    private String userPhone;

    /** 收款人地址 */
    @Excel(name = "收款人地址")
    private String consigneeAddress;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 收款人姓名 */
    @Excel(name = "收款人姓名")
    private String consignee;

    /** 关联商户id */
    @Excel(name = "关联商户id")
    private Long shopId;


}
